<template>
  <div class="my">
    <!-- <Sweripe :bannerList='bannerList'></Sweripe> -->
    
      我的页面
       <div
        class="shop"
        v-for="(item, index) in shop_table"
        :key="index"
      >
        <div class="img-box">
          <img :src="item.picUrl" alt="" />
        </div>
        <div class="text">
          <div>{{ item.shopName }}</div>
          <div>{{ item.monthSalesTip }}</div>
          <div>{{ item.minPriceTip }}</div>
        </div>
      </div>
    <Tabbar></Tabbar>
  </div>
</template>

<script>
import { shop_fav } from "../utils/api";
export default {
  data() {
    return {
      shop_table: [],
    };
  },
  //  created(){
  //    this.shop_table()
  //  },
  mounted() {
    shop_fav().then((res) => {
      console.log(res);
      this.shop_table = res.data.list;
    });
  },
};
</script>

<style lang="scss" scoped>
.shop {
  display: flex;
  margin: 10px;
  .img-box {
    width: 100px;
    margin-right: 10px;
    img {
      width: 100%;
    }
  }
  .text {
    flex: 1;
  }
}
</style>